package com.lingxu.base.system.common.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingxu.base.system.common.entity.SysLog;
import com.lingxu.base.system.common.entity.SysLogOption;
import com.lingxu.base.system.common.entity.SysLogSearchVO;
import com.lingxu.base.system.common.entity.SysLogVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统日志表 Mapper 接口
 * </p>
 *
 * @Author zhangweijian
 * @since 2018-12-26
 */
public interface SysLogMapper extends BaseMapper<SysLog> {



	IPage<SysLog> queryPageList(@Param("page")Page<SysLog> page, @Param("sysLog") SysLogOption sysLog,@Param("flag") String flag);

	List<SysLogVO> findDownLogList(@Param("startTime") String startTime, @Param("endTime") String endTime);


	IPage<Map> findBackUpLogs(@Param("logPage") Page<Map> logPage, @Param("dateTime") String dateTime);

	void createBackUpFile(String path);

    IPage<SysLog> getPTLogPageList(@Param("page")Page<SysLog> page,@Param("sysLog") SysLogSearchVO sysLog);
}
